home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9310.ZIP
/
DFPP03.ZIP
/
TOOLBAR.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-09-15
|
588b
|
23 lines
// ------------ toolbar.cpp
#include "toolbar.h"
// ----- construct a Toolbar
ToolBar::ToolBar(DFWindow *par) : DFWindow(par)
{
windowtype = ToolbarWindow;
if (par != 0) {
// --- put it into the application window
Move(par->ClientLeft(), par->ClientTop());
Size(par->ClientRight(), par->ClientTop()+2);
par->SetAttribute(TOOLBAR);
}
colors.fg = colors.bg = ToolBarBG;
}
// ---- resize the menubar when the application window resizes
void ToolBar::ParentSized(int xdif, int)
{
Size(Right()+xdif, Bottom());
}